filechooser: Don't automatically select a file
authorrobxnano <91250-robxnano@users.noreply.gitlab.gnome.org>
Tue, 28 Feb 2023 22:50:56 +0000 (22:50 +0000)
committerrobxnano <91250-robxnano@users.noreply.gitlab.gnome.org>
Wed, 1 Mar 2023 13:56:52 +0000 (13:56 +0000)
commit5a5a36151a867ce8761fef392a2526cc0fd96a16
tree3579b3cf8a4416303944622e73e8c75b811226b4
parent471ebabd77c014f47fbe162becfd98a8fb37c954
filechooser: Don't automatically select a file

When the folder changes, do not select the first item in the list,
so if the user enters a folder and then clicks the accept button,
the current folder is returned instead of the selected one.
To maintain consistency with the previous implementation, when a
folder in the path bar is clicked the previously-entered folder is
selected, and when the file chooser is in open file mode the first
item is always selected.

See #5438
gtk/gtkfilechooserwidget.c